package com.zhs.gccs.mbtiles;

//import androidx.room.ColumnInfo;
//import androidx.room.Entity;

import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Property;
import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

@Table(name = "tiles")
//@Entity(tableName = "tiles")
public class Tiles {
    @Column(name = "tile_type")
    @Property(nameInDb = "tile_type")
    String type;//文件类型
    //    @ColumnInfo(name = "zoom_level")
    @Column(name = "zoom_level")
    @Property(nameInDb = "zoom_level")
    private int zoom;//z
    //    @ColumnInfo(name = "tile_column")
    @Column(name = "tile_column")
    @Property(nameInDb = "tile_column")
    private int column;//y
    //    @ColumnInfo(name = "tile_row")
    @Column(name = "tile_row")
    @Property(nameInDb = "tile_row")
    private int row;//x
    //    @ColumnInfo(name = "tile_data")
    @Column(name = "tile_data")
    @Property(nameInDb = "tile_data")
    private byte[] data;//


    public Tiles(String type,int zoom, int column, int row, byte[] data) {
        this.type = type;
        this.zoom = zoom;
        this.column = column;
        this.row = row;
        this.data = data;
    }

    public Tiles(int zoom, int column, int row, byte[] data) {
        this.zoom = zoom;
        this.column = column;
        this.row = row;
        this.data = data;
    }

    @Generated(hash = 625763412)
    public Tiles(int zoom, int column, int row) {
        this.zoom = zoom;
        this.column = column;
        this.row = row;
    }

    @Generated(hash = 1293163233)
    public Tiles() {
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getZoom() {
        return zoom;
    }

    public void setZoom(int zoom) {
        this.zoom = zoom;
    }

    public int getColumn() {
        return column;
    }

    public void setColumn(int column) {
        this.column = column;
    }

    public int getRow() {
        return row;
    }

    public void setRow(int row) {
        this.row = row;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }
}
